package com.zxq.uart.controller;

import com.zxq.uart.frame.decoder._07QueryConsumerResult;
import com.zxq.uart.frame.encoder._07QueryConsumerCmd;
import com.zxq.uart.result.ResultVO;
import com.zxq.uart.service.impl.PlatformExchange;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _07QueryConsumerController extends PlatformExchange<_07QueryConsumerCmd, _07QueryConsumerResult> {


    @Override
    public Integer getCmd() {
        return 0x07;
    }

    @PostMapping("exchange/07")
    @Override
    public ResultVO<_07QueryConsumerResult> exchange(@RequestBody _07QueryConsumerCmd order) {
        return super.exchange(order);
    }

    @Override
    public _07QueryConsumerResult getResult() {
        return new _07QueryConsumerResult();
    }


}
